﻿@{
    ViewBag.Title = "Common Command";
    Layout = "~/Views/Shared/_Layout.cshtml";
}
        <ol class="breadcrumb">
            <li><a href="/Home.html">Home</a></li>
            <li><a href="/WebApp/WebApi"> Sanelib WebApp</a></li>
            <li class="active">File Opertion</li>
        </ol>
    
            
            <div id="introduction">
                <h1 class="text-left">File Operations</h1>
            </div>
            <div id="Reading" >
                <h3>Reading Entries with <abbr title="Windows PowerShell">WPS</abbr></h3>
                <p>
                    To get input from command line we use the following cmdlet.
                </p>
                <pre><code>Read-Host</code></pre>
                <p>
                    The <b>Read-Host</b> cmdlet enables you to interactively prompt a user for information.
                </p>
                <img class="img-thumbnail center-block" src="~/Images/Wps/FLOPR_1.png" />
                <pre>Example<code>$Name = Read-Host "Please enter your name"</code>Description: This is Prompt user for his/her Name and store into variable named “Name”.</pre>
                <p class="alert-info">NOTE: Colon is not required at the end of line. Windows PowerShell Adds colon itself.
                </p>
                <pre>OPTIONS<code>Read-Host -AsSecureString "Enter Password"</code>Used to mask data entered at prompt.</pre>
                <img class="img-thumbnail center-block" src="~/Images/Wps/FLOPR_2.png" />
            </div>
            <br/>
            <div id="Writing" >
                <h3><strong>Writing Entries with <abbr title="Windows PowerShell">WPS</abbr></strong></h3>
                <p>
                    To get output on command line we use the following cmdlet.
                </p>
                <pre><code>Write-Host</code></pre>
                <p>
                    The <b>Write-Host</b> cmdlet enables you to write messages to the Windows PowerShell console.
                </p>
                <img class="img-thumbnail center-block" src="~/Images/Wps/FLOPR_3.png" /><br/>
                <p>Lets Take an Example </p>
                <pre>Example<code>$Name = Write-Host "Please enter your name"</code></pre><br/>
                <table class="table table-condensed">
                    <tr>
                        <td><strong>Options</strong></td>
                        <td><strong>Description</strong></td>
                    </tr>
                    <tr>
                        <td class="active">ForegroundColor</td>
                        <td>Enables to specify different Text Color.</td>
                    </tr>
                    <tr>
                        <td class="active">BackgroundColor</td>
                        <td>Enables to specify Text Background Color.</td>
                    </tr>
                <tr>
                    <td class="active">NoNewLine</td>
                    <td>Lets your cursor to stay on the current line</td>
                </tr>
                </table><br/>
                <pre>Example
                    <img src="~/Images/Wps/FLOPR_4.png" class="img-thumbnail center-block" /></pre>
</div>
           
       